/*
package com.hz.sys.config;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.NoHandlerFoundException;

import javax.validation.ConstraintViolationException;

*/
/**
 * @author mcz
 * @Date 2018/10/29 9:45
 * @Description 全局异常处理
 * @Version 1.0
 *//*

//@ControllerAdvice
public class GlobalControllerExceptionHandler {

     */
/* 应用到所有@RequestMapping注解方法，在其执行之前初始化数据绑定器
     * @param binder
     *//*

    @InitBinder
    public void initBinder(WebDataBinder binder) {}

    @ExceptionHandler(value = { ConstraintViolationException.class })
    @ResponseStatus(HttpStatus.BAD_REQUEST)
    public String constraintViolationException(ConstraintViolationException ex) {
        return "111";
    }

    @ExceptionHandler(value = { IllegalArgumentException.class })
    @ResponseStatus(HttpStatus.BAD_REQUEST)
    public String IllegalArgumentException(IllegalArgumentException ex) {
        return "333";
    }

    @ExceptionHandler(value = { NoHandlerFoundException.class })
    @ResponseStatus(HttpStatus.NOT_FOUND)
    public String noHandlerFoundException(Exception ex) {
        return "3333";
    }


    @ExceptionHandler(value = { Exception.class })
    @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
    public String unknownException(Exception ex) {
        return "3333";
    }
}
*/
